package com.hakim.wfb.customer.enums;

/**
 * Created by walkman on 2017/7/1.
 */

public enum VerifyCodeType {

    REGISTER("1","","注册"),
    FORGET_LOGIN_PASSWORD("2","","忘记登录密码"),
    LOGIN("3","","登录"),
    FORGET_TRADE_PASSWORD("4","","忘记支付密码"),
    ;

    private String code;
    private String value;
    private String bundleKey;

    private VerifyCodeType() {
    }

    private VerifyCodeType(String code, String value, String bundleKey) {
        this.code=code;
        this.value=value;
        this.bundleKey=bundleKey;
    }

    public static VerifyCodeType getByCode(String code) {
        for (VerifyCodeType type : values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }

    public void setCode(String code) {
        this.code=code;
    }

    public String getCode() {
        return code;
    }

    public void setValue(String value) {
        this.value=value;
    }

    public String getValue() {
        return value;
    }

    public void setBundleKey(String bundleKey) {
        this.bundleKey=bundleKey;
    }

    public String getBundleKey() {
        return bundleKey;
    }

}
